﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;


class SortFiveVars
{
    static void Main(string[] args)
    {
        Random rm = new Random();
        int a = rm.Next(0, 100);
        int b = rm.Next(0, 100);
        int c = rm.Next(0, 100);
        int d = rm.Next(0, 100);
        int e = rm.Next(0, 100);
        int biggest = a;
        int smallest = a;
        if (b > biggest)
        {
            biggest = b;
        }
        else if (b < smallest)
        {
            smallest = b;
        }
        if (c > biggest)
        {
            biggest = c;
        }
        else if (c < smallest)
        {
            smallest = c;
        }
        if (d > biggest)
        {
            biggest = d;
        }
        else if (d < smallest)
        {
            smallest = d;
        }
        if (e > biggest)
        {
            biggest = e;
        }
        else if (e < smallest)
        {
            smallest = e;
        }
        for (int i = smallest; i < biggest; i++)
        {
            if ((i == a) || (i == b) || (i == c) || (i == d) || (i == e))
            {
                Console.WriteLine(i);
            }
        }
    }
}

